var pass = true;
$("div").attr({foo: 'baz', zoo: 'ping'}).each(function(){
  if ( this.getAttribute('foo') != "baz" &amp;&amp; this.getAttribute('zoo') != "ping" ) pass = false;
});
ok( pass, "Set Multiple Attributes" );